package day124;

public class booleanmatch {
    public static void main(String[] args) {
        String rule="helloWorld";
        String s1="hellOKitty";
        String s2="helloWorld";
        boolean b1=s1.matches(rule);
        boolean b2=s2.matches(rule);
        System.out.println(b1);
        System.out.println(b2);

    }

}
